home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
010
/
fcon200f.arc
/
SK111.PCH
< prev
Wrap
Text File
|
1986-06-30
|
3KB
|
80 lines
A
; This is file SK111.PCH
;
;The following command should be applied to SK.COM
;(Version 1.11A or equivalent, unnecessary for 1.5)
;to patch it so that LEFT SHIFT-RIGHT SHIFT is used
;to enter Sidekick instead of ALT-CTRL.
;This allows the use of FANSI-CONSOLE's ALT-CTRL
;key combinations without waking up Sidekick.
;Note that the patched routine may not be in exactly
;the same place in your version of Sidekick.
;With the following command, DEBUG will apply these
;patches to SideKick. It will also display this
;patch file on the screen as it does it.
;For DOS 2, the comment lines will generate error msgs.
;This is OK!
;----------------------------------------------
; debug sk.com <sk111.pch
;----------------------------------------------
;The following routine will appear at ABOUT the same
;place in your version, check the address and
;change the patch address if it is different in your version.
;This checks for Alt-Ctrl to enter SideKick.
;xxxx:0876 50 PUSH AX
;xxxx:0877 2E CS:
;xxxx:0878 803E360200 CMP BYTE PTR [0236],00
;xxxx:087D 7510 JNZ 088F
;xxxx:087F 2E CS:
;xxxx:0880 A06A0A MOV AL,[0A6A]
;xxxx:0883 240F AND AL,0F
;xxxx:0885 3C0C CMP AL,0C
;xxxx:0887 7406 JZ 088F ;Replace this jump with NOPs
;xxxx:0889 3C03 CMP AL,03
;xxxx:088B 7402 JZ 088F
;xxxx:088D 58 POP AX
;xxxx:088E CF IRET
a887
nop
nop
;If you want SK to check for something other than Left-Shift-Right-Shift
;Change the 03 on the following line to:
; 05 for Ctrl-Right-Shift
; 06 for Ctrl-Left-Shift
; 09 for Alt-Right-Shift
; 0a for Alt-Left-Shift
;And then remove the semi-colon at the start of the line:
;cmp al,03
A
;The following routine will appear at ABOUT the same
;place in your version, check the address and
;change the patch address if it is different in your version.
;This checks for Alt-Ctrl to exit SideKick (Alt checked previously).
;xxxx:1972 833EC60200 CMP WORD PTR [02C6],+00
;xxxx:1977 75EB JNZ 1964
;xxxx:1979 F606C50204 TEST BYTE PTR [02C5],04
;xxxx:197E 751D JNZ 199D ;Replace this jump with NOPs.
;xxxx:1980 80FA03 CMP DL,03
;xxxx:1983 7418 JZ 199D
;xxxx:1985 FF0EC802 DEC WORD PTR [02C8]
;xxxx:1989 75D9 JNZ 1964
;xxxx:198B C706C8029600 MOV WORD PTR [02C8],0096
;xxxx:1991 F6443C01 TEST BYTE PTR [SI+3C],01
a197e
nop
nop
;If you want SK to check for something other than Left-Shift-Right-Shift
;Change the 03 on the following line to:
; 05 for Ctrl-Right-Shift
; 06 for Ctrl-Left-Shift
; 09 for Alt-Right-Shift
; 0a for Alt-Left-Shift
;And then remove the semi-colon at the start of the line:
;cmp dl,03
w
q